<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="layout" content="main"/>
  <meta http-equiv="cache-control" content="no-cache">
  <title>Show Profile</title>
  <resource:tabView/>
</head>
<body>
<div class="body">
  <h1>Show Profile</h1>
  <g:if test="${flash.message}">
    <div class="message">${flash.message}</div>
  </g:if>
  <div class="dialog">
    <richui:tabView id="tabView">
      <richui:tabLabels>
        <richui:tabLabel selected="true" title="Personal"/>
        <richui:tabLabel title="Business"/>
        <richui:tabLabel title="Private"/>
      </richui:tabLabels>

      <richui:tabContents>
        <richui:tabContent>
          <table>
            <tbody>

            <tr class="prop">
              <td valign="top" class="name">Login name:</td>

              <td valign="top" class="value">${profileInstance?.user?.encodeAsHTML()} <g:link controller="user" action="show" id="${profileInstance?.user?.id}">(Login Details)</g:link></td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Photo:</td>

              <td valign="top" class="value"><img src="<g:createLink controller="image" action="show" id="${profileInstance.user.id}"/>" alt="${profileInstance.user.username}"/></td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">First Name:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'firstName')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Second Name:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'secondName')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Last Name:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'lastName')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Birthday:</td>

              <td valign="top" class="value"><g:date date="${profileInstance.birthday}"/></td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Club Function:</td>

              <td valign="top" class="value">${profileInstance?.clubFunction?.encodeAsHTML()}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Interests:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'interests')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Jabber Id:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'jabberId')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Twitter Id:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'twitterId')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Facebook Id:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'facebookId')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Xing Id:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'xingId')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Linkedin Id:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'linkedinId')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Date Created:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'dateCreated')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Last Updated:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'lastUpdated')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Last Login:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'lastLogin')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Last Action:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'lastAction')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Last Medium:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'lastMedium')}</td>

            </tr>

            </tbody>
          </table>
        </richui:tabContent>

        <richui:tabContent>
          <table>
            <tbody>

            <tr class="prop">
              <td valign="top" class="name">Position:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'position')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Company:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'company')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Business Street:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'businessStreet')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Business Post Code:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'businessPostCode')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Business Place:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'businessPlace')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Business State:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'businessState')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Business Country:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'businessCountry')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Business Web Site:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'businessWebSite')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Business Phone:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'businessPhone')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Business Mobile:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'businessMobile')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Business Fax:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'businessFax')}</td>

            </tr>

            </tbody>
          </table>
        </richui:tabContent>

        <richui:tabContent>
          <table>
            <tbody>

            <tr class="prop">
              <td valign="top" class="name">Private Street:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'privateStreet')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Private Post Code:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'privatePostCode')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Private Place:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'privatePlace')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Private State:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'privateState')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Private Country:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'privateCountry')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Private Web Site:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'privateWebSite')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Private Picture Album:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'privatePictureAlbum')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Private Phone:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'privatePhone')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Private Mobile:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'privateMobile')}</td>

            </tr>

            <tr class="prop">
              <td valign="top" class="name">Private Fax:</td>

              <td valign="top" class="value">${fieldValue(bean: profileInstance, field: 'privateFax')}</td>

            </tr>

            </tbody>
          </table>
        </richui:tabContent>
      </richui:tabContents>
    </richui:tabView>

  </div>
  <div class="buttons">
    <g:form>
      <input type="hidden" name="id" value="${profileInstance?.id}"/>
      <span class="button"><g:actionSubmit class="edit" value="Edit"/></span>
    </g:form>
  </div>
</div>
</body>
</html>
